import instance from "../request"


export const homepage = {
    getSiteNamePlate: (data) => {
        return instance({
            url: '/common/getSiteNamePlate',
            method: "post",
            data
        })
    },
    getHomePageDevicesImpl: (data) => {
        return instance({
            url: '/common/getHomePageDevicesImpl',
            method: "post",
            data
        })
    },
    getChartsInfoByDuration: (data) => {
        return instance({
            url: '/common/getChartsInfoByDuration',
            method: 'post',
            data
        })
    },
    getLiveStreamUrl: (data) => {
        return instance({
            url: '/data/getLiveStreamUrl',
            method: "post",
            data
        })
    }
}